home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: howland.reston.ans.net!torn!nott!cunews!wabakimi!abelo
- From: abelo@chat.carleton.ca (Andrew Belo)
- Subject: Using multiple functions in one file
- X-Nntp-Posting-Host: wabakimi.carleton.ca
- Message-ID: <DL00rI.HFr@cunews.carleton.ca>
- Sender: news@cunews.carleton.ca (News Administrator)
- Organization: Carleton University
- X-Newsreader: TIN [version 1.2 PL2]
- Date: Thu, 11 Jan 1996 04:06:54 GMT
-
-
- I have written an example program out of a book and it keeps giving me an
- error that says "Call to undefined function 'butler' in function main()"
- I am using Borland C++ for Dos, Win and Win 32 Version 4.5.
-
- The book is called C: Step by Step, and the program is as follows.
-
- /* two_func.c -- a program using two functions in one file */
- #include <stdio.h>
- main()
- {
- printf("I will summon the butler function. \n");
- butler();
- printf("Yes. Bring me some tea and floppy disks.\n");
- }
- butler()
- {
- printf("You rang, sir? \n");
- }
-
- Thanx
-
-
- ----------------------------------------------------------------------------
- Andrew Belo | WARNING: Yes this message has spelling mistakes but
- 1st Year Computer Sci | learn to live with it!!!!!!!!
- Carleton University ------------------------------------------------------
- Email address: abelo@chat.carleton.ca
- ai806@FreeNet.Carleton.CA
- Home Page: chat.carleton.ca/~abelo
- ----------------------------------------------------------------------
-
-